﻿@{ 
    SiteConfig siteConfig = (SiteConfig)ViewBag.SiteConfig;
    HeaderViewModel headerViewModel= (HeaderViewModel)ViewBag.HeaderViewModel;
    FooterViewModel footerViewModel = (FooterViewModel)ViewBag.FooterViewModel;
}
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black" />
    <meta name="format-detection" content="telephone=no" />
    <meta name="format-detection" content="email=no" />
    <meta name="keywords" content="@siteConfig.Keywords" />
    <meta name="description" content="@siteConfig.Description" />
    <title>@Page.Title</title>
    <link href="/Content/style.css" rel="stylesheet" />
    @RenderSection("HeaderContent", required: false)
</head>
<body>
    @if (headerViewModel.HeaderLinks.Count() > 0)
    {
    <div class="headerBg clearfix">
        <div class="baseWidth bc">
            <ul class="headerLinks">
                @foreach (var item in headerViewModel.HeaderLinks)
                {
                    <li><a href="@item.LinksUrl" target="@item.LinksTarget">@item.Title</a></li>
                }
            </ul>
        </div>
    </div>
    <!--header end-->
    }

    <div class="baseWidth bc clearfix header">
        <a href="Default.html" class="logo"><img src="/images/logoHeader.jpg" /></a>
        <!--logo end-->

        @Html.Raw(headerViewModel.SiteNavHTML)
        <!--菜单 end-->

        <div class="search clearfix">
            <input type="button" class="btnSearch" value="" />
            <div class="box">
                <input type="text" class="txtKeyword" />
            </div>
        </div>
        <!--search end-->
    </div>
    <!--header end-->

     @RenderBody()

    <div class="footerBg">
        <div class="baseWidth bc clearfix footer">
            <img src="/images/logoFooter.jpg" class="logo" />
            <!--logo end -->

            <div class="contact">
                <p>@siteConfig.Address</p>
                <p>@siteConfig.Tel   @siteConfig.Email</p>
                <p>@siteConfig.Copyright</p>
            </div>
            <!--联系方式 end -->
            @if (footerViewModel.Footerlinks.Count() > 0)
            {
            <dl class="links">
                <dt>@footerViewModel.FooterlinksNavName：</dt>
                <dd>
                    <ul class="list">
                        @foreach (var item in footerViewModel.Footerlinks)
                        {
                            <li><a href="@item.LinksUrl" target="@item.LinksTarget">@item.Title</a></li>
                        }
                    </ul>
                </dd>
            </dl>
            <!--常用链接 end -->
            }
        </div>
    </div>

    <script src="/Scripts/jquery.min.js"></script>
    <script src="/Scripts/jquery.hoverIntent.min.js"></script>
    @RenderSection("FooterScript", required: false)
    <script src="/Scripts/page.js"></script>
</body>
</html>